<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>MVVM</title>
</head>
<body>
    <div id="app">
        <input type="text" v-model="message">
        <div>{{message}} {{test}}</div>
        <ul><li>{{message}}</li></ul>
        {{test}}
    </div>
<!--    <script src="watcher.js"></script>-->
<!--    <script src="observer.js"></script>-->
<!--    <script src="compile.js"></script>-->
<!--    <script src="MVVM.js"></script>-->
    <script src="bundle.js"></script>
<!--    为了便于单元测试的require，此处使用webpack将文件合并为bundle.js-->
    <script>
        let vm = new MVVM({
            el:'#app',
            data:{
                message:'hello',
                test:'world'
            }
        })
    </script>
</body>

</html>
